package com.commonlyUsedClass.ObjectStudy;/***
 * @ClassName: run
 * @Description:
 * @Auther: 送一一块二向箔
 * @Date: 15:27 2022/2/14
 * @version : V1.0
 */
public class run {
    public static void main(String[] args) {
        Student s1 = new Student("aaa", 1, "男");
        Student s2 = new Student("aaa", 1, "男");
        Student s3 = s1;

        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
        System.out.println(s1.equals(s2));//重写equals为true


        System.out.println(s3.equals(s1));//必然为true，对象地址没变

    }
}
